/**
 * @file		calendar.h
 * @brief		Calendar
 * @note		None
 * @attention	None
 * 
 * <B><I>ALL RIGHTS RESERVED, COPYRIGHT&copy; SOCIONEXT INCORPORATED 2016</I></B>
 */

/** @weakgroup calendar_overview
@{
	Calendar base function.<br>
	- Calendar setting function: to set the date and time.
	- Calendar getting function: to get the date and time.
@}*//* --- end of calendar_overview */

#ifndef _CALENDAR_H_
#define _CALENDAR_H_

/** @weakgroup calendar_func
@{*/

/**
Calendar Initialization.
*/
extern void vCalendarInit(void);

/**
set Date and time.
@param [in]		cmd		Command data (SET Calendar data).<br>
@retval  0 : success
@retval  1 : parameter error
*/
extern int iCalendarSetDate(unsigned *cmd);

/**
get Date and time.
@param [out]	cmd		Command data (GET Calendar data).<br>
*/
extern void vCalendarGetDate(unsigned *cmd);

/**
set Date and time to External RTC.
@param [in]		cmd		Command data (SET RTC data).<br>
@retval  0 : success
@retval  1 : parameter error
*/
extern int iCalendarSetExtRTC(unsigned *cmd);

/* @} */	// calendar_func group

#endif	// _CALENDAR_H_

